<?php
class IntegrantefumturController extends BaseController
{
	private function adicionaParametros($parametro, $valor){
    	if ($this->parametrosConsulta != "")
    		$this->parametrosConsulta .= "&";
    	else
    		$this->parametrosConsulta = "?";
    	$this->parametrosConsulta .=  $parametro. "=" . $valor;
    }

    public function indexAction(){
    	 $this->view->title = "Adicionar Integrante Fumtur";
    	//$this->view->linkManual = "/bntmercosul/public/manual/manual_consulta_fumtur.html";
		$authNamespace = new Zend_Session_Namespace('Zend_Auth');
		$id_pessoa = $authNamespace->id_PessoaFisica;
		// recupera os fumtur cadastrados;
		$fumtur = new Fumtur();
		$fumturList = $fumtur->buscarFumturPorPessoaFisica($id_pessoa, 1, 0);
		if ($fumturList != null && count($fumturList) > 0){
			$this->view->fumturList = $fumturList;
		}
		else{
			$this->_redirect('/fumtur/add');
			return;
		}
		$this->render();
    }

	function addAction() {
	}

	function excluirAction(){
	}

	function editAction(){
	}


}
